package com.bxl.rpc.provider.impl;


import com.bxl.rpc.api.IService;
import com.bxl.rpc.api.entity.Person;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * <>
 *
 * @author baixl
 * @date 2021/2/25
 */
public class MyService implements IService {
    private AtomicInteger index = new AtomicInteger(1);
    
    public Person getPerson(String name, String sex) {
        Person person = new Person(name,sex,index.getAndIncrement());
        return person;
    }
}
